package demo.easyExcel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @Author: zjq
 * @Date: create in 2022/7/4 17:12
 */
@Getter
@Setter
@EqualsAndHashCode
public class DemoData2 {
    //@ExcelProperty("字符串标题")
    @ExcelProperty(index = 0, value = "字符串标题")
    private String string;
    @ExcelProperty(index = 1, value = "日期标题")
    private Date date;

    @Override
    public String toString() {
        return "DemoData2{" +
                "string='" + string + '\'' +
                ", date=" + date +
                '}';
    }
}